#ifndef __FRAMES_H__
#define __FRAMES_H__

// Frame types
#define FRAME_PROBE_REQUEST 16
#define FRAME_PROBE_RESPONSE 17

typedef struct
{

	unsigned char frameType;
	unsigned char frameControl;

} Frame;

typedef struct
{

	Frame frame;

	unsigned short duration;

	unsigned char DA[6];

	unsigned char SA[6];

	unsigned char BSSID[6];

	unsigned short sequenceControl;

} ManagementFrame;

typedef struct
{

	ManagementFrame managementFrame;

	unsigned char timestamp[8];

	unsigned short beaconInterval;

	unsigned short capability;

} BeaconOrProbeResponse;

#endif
